package org.hdax.dm.client;

import org.hdax.dm.entity.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "dm-user-provider")
public interface UserClient {

    @PostMapping(path = "/findByPhone")
    User findByPhone(@RequestParam("phone") String phone);

    @PostMapping(path = "/InsertUser")
    void InsertUser(@RequestBody User user);

    @PostMapping(path = "/modifyUserInfo")
    void modifyUserInfo(@RequestBody User user);
}
